

plugins {
    id 'java'
    id "com.github.spacialcircumstances.gradle-cucumber-reporting" version "0.1.24"
    id "io.qameta.allure" version "2.11.2"

}



apply plugin: "io.qameta.allure"

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

def allureVersion = "2.24.0"

dependencies {

    testImplementation platform("io.qameta.allure:allure-bom:$allureVersion")

    testImplementation "io.qameta.allure:allure-junit-platform"

    implementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'

    implementation "io.cucumber:cucumber-java:7.2.3"
    implementation "io.cucumber:cucumber-junit:7.2.3"

    testImplementation "org.junit.vintage:junit-vintage-engine:5.7.0"

    testImplementation 'org.json:json:20160810'
    implementation 'io.rest-assured:rest-assured:4.5.0'
    // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
    implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.15.2'

    // https://mvnrepository.com/artifact/io.qameta.allure/allure-junit5
    implementation group: 'io.qameta.allure', name: 'allure-junit5', version: '2.27.0'
    // https://mvnrepository.com/artifact/io.qameta.allure/allure-cucumber-jvm
    implementation group: 'io.qameta.allure', name: 'allure-cucumber-jvm', version: '2.19.0'


}

test {
    useJUnitPlatform()
}

cucumberReports {
    outputDir = file('build/reports/')
    buildId = '0'
    reports = files('build/cucumber-reports/cucumber.json')
}